package org.nbict.iot.protocol.task;

import org.apache.storm.trident.operation.BaseFunction;
import org.apache.storm.trident.operation.TridentCollector;
import org.apache.storm.trident.tuple.TridentTuple;

/**
 * Created by songseven on 18/6/25.
 */
public class DispatchAlert extends BaseFunction {
    @Override
    public void execute(TridentTuple tuple, TridentCollector
            collector) {
        String alert = (String) tuple.getValue(0);

        System.out.println(alert);
    }
}
